Page({
  data:{
    slides:[],
    entities:[]
  },
  onLoad(){
    wx.request({
      url:'https://resources.ninghao.net/wxapp-case/db.json',
      method:'get',
      success:(res)=>{
        this.setData({
          slides:res.data.slides,
          entities:res.data.entities
        })
      }
    }) 
  }
})